package sf.model.fields;

import javax.swing.JCheckBox;

@Deprecated
public class BoolField extends JCheckBox implements Field {

	private static final long serialVersionUID = 1L;

	public BoolField(String name) {
		setName(name);
	}

	public Object getValue() {
		return isSelected() ? true : false;
	}

	public void setValue(Object value) {
		setSelected((Boolean) value);
	}

	public void clear() {
		setSelected(false);
	}
}
